import request from '@/utils/request'

// 查询气瓶列表
export function listCylinder(query) {
  return request({
    url: '/labbase/cylinder/list',
    method: 'get',
    params: query
  })
}

// 查询气瓶详细
export function getCylinder(id) {
  return request({
    url: '/labbase/cylinder/' + id,
    method: 'get'
  })
}

// 新增气瓶
export function addCylinder(data) {
  return request({
    url: '/labbase/cylinder',
    method: 'post',
    data: data
  })
}

// 修改气瓶
export function updateCylinder(data) {
  return request({
    url: '/labbase/cylinder',
    method: 'put',
    data: data
  })
}

// 删除气瓶
export function delCylinder(id) {
  return request({
    url: '/labbase/cylinder/' + id,
    method: 'delete'
  })
}

// 导出气瓶
export function exportCylinder(query) {
  return request({
    url: '/labbase/cylinder/export',
    method: 'get',
    params: query
  })
}